* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #34db74;
}

.container {
  background-color: #fff;
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.4);
  height: 290px;
  width: 400px;
  border-radius: 10px;
  padding: 25px;
  transition: 0.2s;
}

.container.ativo {
  height: 600px;
}

#qr-header {
  text-align: center;

  & h1 {
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 10px;
  }

  & p {
    color: #333;
    font-size: 1rem;
  }
}

#qr-form {
  text-align: center;
  margin: 20px 15px;
  display: flex;
  flex-direction: column;

  & input,
  button {
    width: 100%;
    height: 55px;
    border: none;
    font-size: 0.9rem;
    border-radius: 5px;
  }

  & input {
    border: 1px solid #777;
    padding: 10px 15px;
    margin-bottom: 20px;
  }

  & button {
    background-color: #086824;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.4s;
  }

  & button:hover {
    opacity: 1;
  }

  & button.ativo {
    opacity: 1;
  }
}

#qr-code {
  display: flex;
  opacity: 0;
  border: 1px solid #ccc;
  padding: 30px 0;
  margin: 20px 15px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: 0.5s;
}

.container.ativo #qr-code {
  opacity: 1;
}
